const fs = require('fs');
const path = require("path")
fs.writeFile('./a.txt', '大家好，我是马永豪', error => {
    if (error) throw error
    let myPath = path.join(__dirname, 'a.txt');
    let data = fs.readFileSync(myPath, 'utf8');
    console.log(data);
});


